package com.asiainfo.simpledao;

import java.sql.Connection;
import java.util.List;
import java.util.Map;

public interface Dao {

	int execSQL(String sql, Object... params);

	int execSQL(String sql, Map<String, Object> params);

	List<Row> selectList(String sql, Object... params);

	List<Row> selectList(String sql, Map<String, Object> params);

	Page selectList(String sql, int currPage, int pageSize, Object... params);

	Page selectList(String sql, int currPage, int pageSize, Map<String, Object> params);

	Row selectOne(String sql, Object... params);

	Row selectOne(String sql, Map<String, Object> params);

	Connection getConnection();

	void commit();

	void rollBack();

	void closeConnection();
}
